/*	queue.h

	Header file for queue implementation

	by: Steven Skiena
*/
#define QUEUESIZE 100
#define PASS      1
#define FAIL     0

typedef struct {
        char q[QUEUESIZE+1];		/* body of queue */
        int first;                      /* position of first element */
        int last;                       /* position of last element */
        int count;                      /* number of queue elements */
} queue;

typedef unsigned char bool;

void queue_init(queue *q);
char queue_add(queue *q, char x);
char queue_remove(queue *q);
char queue_empty(queue *q);
